/*
 * morsecodetalk - The Pidgin Plugin contains the entire Morse Code.
 * Have one more friend around to use it, it can be a lot of fun to 
 * communicate in this way.
 * Copyright (C) 2011 Beastieux Zeroo <the.beastieux@gmail.com>
 *

 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA.
 */

#ifndef _MORSECODETALK_H_
#define _MORSECODETALK_H_

#define PREFS_NAMESPACE "/plugins/core/morsecodetalk"
#define PREFS_INTEGER PREFS_NAMESPACE "/int"
#define PREFS_BOOLEAN PREFS_NAMESPACE "/bool"
#define PREFS_CHOICE PREFS_NAMESPACE "/int_choice"

#define PLUGIN_ID N_("gtk-pidgin-morsecodetalk")
#define PLUGIN_NAME N_("Morse Code Talk")
#define PLUGIN_VERSION N_("1.0.0")
#define PLUGIN_SUMMARY N_("The Plugin contains the entire Morse Code.")
#define PLUGIN_DESCRIPTION N_("Have one more friend around to use it, it can be a lot of fun to communicate in this way.")
#define PLUGIN_AUTHOR N_("Beastieux Zeroo <the.beastieux@gmail.com>")
#define PLUGIN_HOME_URL N_("http://morsecodetalk.sourceforge.net/")

static void message_send_cb(GtkButton *button, PidginConversation *gtkconv);
gboolean txt_entrada_keypress(GtkWidget *widget,GdkEventKey *event,gpointer data);
gint signal_handler_event(GtkWidget *widget, GdkEventButton *event, gpointer func_data);
static void create_connections_pidgin(PidginConversation *gtkconv);
static void remove_connections_pidgin(PidginConversation *gtkconv);
static void conversation_displayed_cb(PidginConversation *gtkconv);
static void set_window_id_off();
static void set_window_id_on();
static void get_morsetable_frame();
static void decode_mode_callback(const char *name, PurplePrefType type, gconstpointer val, gpointer null);
static void mouse_mode_callback(const char *name, PurplePrefType type, gconstpointer val, gpointer null);
static PurplePluginPrefFrame * get_config_frame(PurplePlugin *plugin);
void plugin_action_help (PurplePluginAction *action);
void plugin_action_decodeOff(PurplePluginAction *action);
void plugin_action_decodeOn (PurplePluginAction *action);
GList * plugin_actions (PurplePlugin *plugin, gpointer context);
static gboolean plugin_load(PurplePlugin *plugin);
static gboolean plugin_unload(PurplePlugin *plugin);

#endif // _MORSECODETALK_H_
